import axios from '@/common/request.js';

//取消订单
export const cancelOrder = payload => axios({
	url: `/order/cancelOrder`,
	method: 'post',
	payload
})

//确认收货
export const confirmOrder = payload => axios({
	url: `/order/confirmOrder`,
	method: 'post',
	payload
})

//获取订单详情
export const orderDetail = payload => axios({
	url: `/order/detail`,
	method: 'post',
	payload
})

//订单首页
export const orderIndex = payload => axios({
	url: `/order/index`,
	method: 'post',
	payload
})

//获取订单列表
export const orderList = payload => axios({
	url: `/order/list`,
	method: 'post',
	payload
})

//待发货/待收货:订单列表
export const listOrderShip = payload => axios({
	url: `/order/listOrderShip`,
	method: 'post',
	payload
})

//待付款订单列表
export const listOrderUnpay = payload => axios({
	url: `/order/listOrderUnpay`,
	method: 'post',
	payload
})

//订单提交
export const orderSubmit = payload => axios({
	url: `/order/submit`,
	method: 'post',
	payload
})